/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package au.edu.swin.swinvehicle.driver;

import au.edu.swin.swinvehicle.vehiclebooking.VehicleBookingDetailedTO;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Alexandra
 */
@Remote
public interface DriverRemote {

    public List<DriverDetailsTO> getAllDrivers() throws DriverException;

    public DriverDetailsTO getDriverById(Long id) throws DriverException;

    public void updateDriverDetails(DriverDetailsTO to) throws DriverException;

    public List<VehicleBookingDetailedTO> getDriverJobs(String username) throws DriverException;

    public void updateDriverJob(Long id, boolean taskCompleted) throws DriverException;

    public DriverDetailsTO getDriverByUsername(String username) throws DriverException;

    public void insertNewDriver(DriverDetailsTO driverDetailsTO) throws DriverException;
}
